home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20020314-20021006 / 000342_dmacq@erols.com_Thu Sep 5 13:00:54 EDT 2002.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  93 lines

  1. Article: 13673 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!feed2.news.rcn.net!feed1.news.rcn.net!rcn!not-for-mail
  3. From: "Donald MacQueen" <dmacq@erols.com>
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: i am sooooo confused
  6. Date: Thu, 5 Sep 2002 12:55:54 -0400
  7. Lines: 74
  8. Message-ID: <al82ab$apf$1@bob.news.rcn.net>
  9. References: <al5rmn$t41$1@bob.news.rcn.net> <al5tpn$409$1@watsol.cc.columbia.edu>
  10. X-Trace: UmFuZG9tSVZHc7gilLGgrRXSpohddZtS0PglcF3Us8SS3je2caOTE0U0+GLXAmlV
  11. X-Complaints-To: abuse@rcn.com
  12. NNTP-Posting-Date: 5 Sep 2002 16:55:39 GMT
  13. X-MimeOLE:  Produced By Microsoft MimeOLE V5.00.2919.6600
  14. X-Priority:  3
  15. X-Newsreader:  Microsoft Outlook Express 5.00.2919.6600
  16. X-MSMail-Priority:  Normal
  17. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13673
  18.  
  19. thanks, frank. i'm off to buy the book.
  20.  
  21. "Frank da Cruz" <fdc@columbia.edu> wrote in message
  22. news:al5tpn$409$1@watsol.cc.columbia.edu...
  23. > In article <al5rmn$t41$1@bob.news.rcn.net>,
  24. > Donald MacQueen <dmacq@erols.com> wrote:
  25. > : we have a phone system at my kids school that spits out
  26. > : call records. i want to use kermit to capture them for analysis.
  27. > :
  28. > : this works interactively:
  29. > : log session
  30. > : set input echo off
  31. > : set modem type none
  32. > : set line /dev/ttyS0
  33. > : set carrier-watch off
  34. > : set speed 9600
  35. > : connect
  36. > :
  37. > : i can then see the records on the screen and they do get logged to a
  38. file.
  39. > :
  40. > : what i -really- want to do is to make this a weekly cron job that
  41. rotates
  42. > : or renames the log file, mails it off, etc.
  43. > :
  44. > : to the above:
  45. > :      i removed the connect
  46. > :     i added the line 'set background on'
  47. > :     i added '#!/usr/local/bin/kermit' as the first line
  48. > :
  49. > : but it is not running in the background as expected. i am sure the
  50. mistake
  51. > : is elementary, and i will feel like a moron when i find it, but i have
  52. been
  53. > : messing with this for over a week now, looking at the scripts in the
  54. > : library, etc., and i am thoroughly confused.
  55. > :
  56. > OK, I realize the scripting tutorial says "take the CONNECT command out of
  57. > your script" but the script still needs *something* to make it read data
  58. from
  59. > the connection.  So like the tutorial says, replace the CONNECT with
  60. INPUT.
  61. > The question is, what timeout and search string should you use?
  62. >
  63. > You might want to use:
  64. >
  65. >   INPUT -1 STRING-THAT-WILL-NEVER-COME
  66. >
  67. > -1 means wait forever for the string.  Then if you specify a string that
  68. > won't ever come, it waits forever (logging all the while).
  69. >
  70. > Or you might want to log for a certain amount of time, or until a certain
  71. > time ("help input" for more info).  Or you might want to terminate when a
  72. > certain string comes in.
  73. >
  74. > Another possibility is to log for (say) one hour, close the log, start
  75. > a new log.  It's easy:
  76. >
  77. >   set input echo off
  78. >   set modem type none
  79. >   set line /dev/ttyS0
  80. >   set carrier-watch off
  81. >   set speed 9600
  82. >
  83. >   while 1 {
  84. >        if open session-log close session-log
  85. >        log session \v(ndate)_\v(time).log
  86. >        if fail exit 1 Error opening log
  87. >        input 3600 STRING-THAT-WILL-NEVER-COME
  88. >   }
  89. >
  90. > - Frank
  91.  
  92.  
  93.